package cn.yunhe.realms;

import java.util.LinkedHashMap;

/**
 * 访问权限配置
 *
 * 葛森
 */
public class FilterChainDefinitionMapBuilder {

    public LinkedHashMap<String,String > filterChainDefinitionMapBuilder(){
        LinkedHashMap<String,String> hashMap=new LinkedHashMap<>();
        hashMap.put("/login.html","anon");
        hashMap.put("/css/**","anon");
        hashMap.put("/fonts/**","anon");
        hashMap.put("/images/**","anon");
        hashMap.put("/js/**","anon");
        hashMap.put("/layui-util/**","anon");
        hashMap.put("/role/*.do","roles[admin]");
        hashMap.put("/emp/getInfo.do","anon");

        hashMap.put("/registration.html","anon");
        hashMap.put("/updatePWD.html","anon");
        hashMap.put("/emp/login.do","anon");
        hashMap.put("/**","authc");

        return hashMap;
    }

}
